@tanmay07 Got it thanks a ton!
I was also looking for another scenario where I do not have to use this. Suppose I configure my device to be on a deepsleep it consumes about 25uA current. But I want it to wake up on certain levels of voltage from my sensors on analog pins. Is it possible to do this using:-
machine.pin_deepsleep_wakeup(pins, mode, enable_pull)
?? Because I believe this function can only wakeup the decice from deep sleep if the specidied pins goes high or low.This can be used for specific voltage levels on analog pins right?